from flask_migrate import MigrateCommand
from flask_script import Manager
from app import create_app
import os


app = create_app(os.getenv('MSBD_CONFIG', 'default'))
manager = Manager(app)
manager.add_command('db', MigrateCommand)


@app.route('/')
def index():
    return '面试宝典'


if __name__ == '__main__':
    manager.run()
